<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ page contentType="text/html;charset=utf-8"%>
<html>
<head>
    <meta charset="utf-8">
    <title>
       检验科
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
    <link rel="stylesheet" href="/css/layui.css"  media="all">
    <link rel="stylesheet" href="/lib/layui/css/modules/laydate/default/laydate.css" media="all"/>
    <link type="text/css" rel="stylesheet" href="../js/jedate/test/jeDate-test.css">
    <link type="text/css" rel="stylesheet" href="../js/jedate/skin/jedate.css">
    <script type="text/javascript" src="../js/jedate/src/jedate.js"></script>
<%--    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.css"/>
    <link rel="stylesheet" href="/js/calendar/skin/WdatePicker.css"/>--%>

<%--    <link href="http://www.jq22.com/jquery/bootstrap-3.3.4.css" rel="stylesheet">--%>
</head>

<body>

<div class="providerAdd">
    <form id="userForm" name="userForm" method="post" enctype="multipart/form-data"
          action="${pageContext.request.contextPath}/keshi/jysave">
        <%--<input type="hidden" name="method" value="add">--%>
        <!--div的class 为error是验证错误，ok是验证成功-->
        <div class="form-group">
            <label for="ucode">编号：</label>
            <input type="text" name="uCode" id="uCode" value="">
            <!-- 放置提示信息 -->
            <font color="red"></font>
        </div>
        <div>
            <label >检验方式：</label>

            <input type="text" name="jFangShi" id="jFangShi"/>
        </div>
      <%--      <div class="form-group">
            <label for="ucode">检查结果：</label>
            <textarea id="L_content" name="jJieGuo"
                      placeholder="简介" style="height: 260px;">简介</textarea>
            <!-- 放置提示信息 -->
            <font color="red"></font>
        </div>--%>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>检查结果
                </label>
                <div class="layui-input-inline">
                <textarea type="password" style="width: 400px;height: 100px" id="jJieGuo" name="jJieGuo"
                          class="layui-input"></textarea>
                </div>
            </div>
         <%--   <div class="form-group">
                <label for="ucode">医嘱：</label>
                <textarea id="L_content2" name="yYiZhu"
                          placeholder="简介" style="height: 260px;">简介</textarea>
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>--%>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>医嘱内容
                </label>
                <div class="layui-input-inline">
                <textarea type="password" style="width: 400px;height: 100px" id="yYiZhu" name="yYiZhu"
                          class="layui-input"></textarea>
                </div>
            </div>
        <div>
            <label for="link3">时间：</label>
            <input type="text" class="link3" id="link3" name="updateTime"
                    />
            <font color="red"></font>
        </div>
       <%-- <div>
            <input type="hidden" id="errorinfo" value=""/>
            <label for="a_idPicPath">上传图片</label>
            <input type="file" name="attachs" id="a_idPicPath"/>
            <font color="red"></font>
        </div>--%>
        <%--       <div class="form-group">
                   <input type="hidden" id="errorinfo" value=""/>
                   <label for="file-5">证件照</label>
                   <input id="file-5" name="userTx" class="file" type="file" multiple data-preview-file-type="any"/>
                   <font color="red"></font>
               </div>--%>
            <div>
                <label for="yiShi">医师：</label>
                <input type="text" name="yiShi" id="yiShi" value="${doctor.docname}">
                <font color="red"></font>
            </div>
        <div class="providerAddBtn">
            <input type="submit" name="add" id="add" class="add" value="保存" >
            <input type="button" id="back" name="back" value="返回" >
        </div>
    </form>
</div>
</body>
</html>
<script src="../js/jquery.min.js"></script>
<script src="/js/calendar/WdatePicker.js"></script>
<script src="../lib/layui/lay/modules/laydate.js" charset="utf-8"></script>
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../js/x-layui.js" charset="utf-8">
    layui.use(['form','layer','upload'], function() {
        $ = layui.jquery;
        var form = layui.form
            , layer = layui.layer
            , upload = layui.upload;
        //时间
        //时间
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            //执行一个laydate实例
            laydate.render({
                elem: '#link3' //指定元素
            });
        });
    })

    $(".add").bind(click,function () {
        var index = parent.layer.getFrameIndex(window.name)
        parent.location.href = "keshi/jysave";
        parent.layer.close(index);
})
    <%--//多文件列表示例--%>
    <%--var demoListView = $("#demoList")--%>
        <%--,uploadListIns = upload.render({--%>
        <%--elem: '#testList'--%>
        <%--,url: '/keshi/upload'--%>
        <%--,accept: 'file'--%>
        <%--,multiple: true--%>
        <%--,auto: false--%>
        <%--,bindAction: '#testListAction'--%>
        <%--,choose: function(obj){--%>
            <%--var files = this.files = obj.pushFile(); //将每次选择的文件追加到文件队列--%>
            <%--//读取本地文件--%>
            <%--obj.preview(function(index, file, result){--%>
                <%--var tr = $(['<tr id="upload-'+ index +'">'--%>
                    <%--,'<td>'+ file.name +'</td>'--%>
                    <%--,'<td>'+ (file.size/1014).toFixed(1) +'kb</td>'--%>
                    <%--,'<td>等待上传</td>'--%>
                    <%--,'<td>'--%>
                    <%--,'<button class="layui-btn layui-btn-xs demo-reload layui-hide">重传</button>'--%>
                    <%--,'<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">删除</button>'--%>
                    <%--,'</td>'--%>
                    <%--,'</tr>'].join(''));--%>

                <%--//单个重传--%>
                <%--tr.find('.demo-reload').on('click', function(){--%>
                    <%--obj.upload(index, file);--%>
                <%--});--%>

                <%--//删除--%>
                <%--tr.find('.demo-delete').on('click', function(){--%>
                    <%--delete files[index]; //删除对应的文件--%>
                    <%--tr.remove();--%>
                    <%--uploadListIns.config.elem.next()[0].value = ''; //清空 input file 值，以免删除后出现同名文件不可选--%>
                <%--});--%>

                <%--demoListView.append(tr);--%>
            <%--});--%>
        <%--}--%>
        <%--,done: function(res, index, upload){--%>
            <%--if(res.code == 0){ //上传成功--%>
                <%--var tr = demoListView.find('tr#upload-'+ index)--%>
                    <%--,tds = tr.children();--%>
                <%--tds.eq(2).html('<span style="color: #5FB878;">上传成功</span>');--%>
                <%--tds.eq(3).html(''); //清空操作--%>
                <%--return delete this.files[index]; //删除文件队列已经上传成功的文件--%>
            <%--}--%>
            <%--this.error(index, upload);--%>
        <%--}--%>
        <%--,error: function(index, upload){--%>
            <%--var tr = demoListView.find('tr#upload-'+ index)--%>
                <%--,tds = tr.children();--%>
            <%--tds.eq(2).html('<span style="color: #FF5722;">上传失败</span>');--%>
            <%--tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //显示重传--%>
        <%--}--%>
    <%--});--%>
    <%--});--%>
</script>
